<!doctype html>
<html>
<meta charset=UTF-8>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript">
$(function() {
	$("#button").click(function() {
		$.ajax({
			url: "http://localhost:8888/test/jsonp",
			data: {
				message: "hello"
			},
			dataType: "jsonp",
			jsonp: "jsoncallback",
			complete: function() {
			},
			success: function(data, status) {
				console.log(data);
				$.each(data, function(i, foo) {
					alert(foo.message);
				});
			},
			error: function(e) {
			}
		});
	});
});
</script>
<body>
<button id="button">go</button>
